#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main(void)
{

	double d = 0;
	scanf("%lf", &d);
	if (d != 0){
		printf("f(%.1lf) = %.1lf\n", d, 1 / d);
	}
	else{
		printf("f(%.1lf) = %.1lf\n", d, 0.0);
	}
	return 0;
}